home *** CD-ROM | disk | FTP | other *** search
/ Amiga Plus Special 25 / AMIGAplus Sonderheft 25 (2000)(Falke)(DE)(Track 1 of 4)[!].iso / Online / Install < prev    next >
Text File  |  2000-05-08  |  8KB  |  254 lines

  1. ; $VER: Install_AWeb 3.2DEMO (1.7.98)
  2. ; Description: Installer script for AWeb-II 3.2DEMO
  3.  
  4. (set cpu (database "cpu"))
  5. (set cpu020 (and (<> cpu "68000") (<> cpu "68010")))
  6. (set v39 (>= (/ (getversion "exec.library" (resident)) 65536) 39))
  7.  
  8. (set awn (getversion "AWeb"))
  9. (set awv (/ awn 65536))
  10. (set awr (- awn (* awv 65536)))
  11.  
  12. ; all strings used in this installer script
  13. (set #need39 "This program requires OS 3.0 or later to function.")
  14. (set #nohelp "No help available.")
  15. (set #welcome
  16.    (cat "AWeb-II is a fast, multithreaded World Wide Web browser for Amiga OS 3.0 or higher.\n"
  17.       "It understands virtually all widely used HTML including JavaScript and has many other features.\n"
  18.       "AWeb-II runs with a wide variety of TCP-stacks."
  19.       ("\n\nThis installation procedure will install the AWeb-II browser version %ld.%ldDEMO on your system.\n" awv awr)
  20.    )
  21. )
  22. (set #classact
  23.    (cat "IMPORTANT\n\n"
  24.         "This AWeb-II demo needs the ClassAct GUI package to run.\n"
  25.         "The ClassAct package is not included in the demo archive, but is freely available "
  26.         "from Aminet, and via ftp from:\n"
  27.         "ftp://ftp.thule.no/pub/classact/"
  28.    )
  29. )
  30.  
  31. (set #destdir-prompt "Please select the directory where you want AWeb-II DEMO installed.\n(If you do not accept the default, a directory 'AWeb32DEMO' will be created there.)")
  32. (set #destdir-help "A directory for AWeb32DEMO will be created here. By accepting the default directory, most of the files don't have to be copied.")
  33. (set #installing "Installing ")
  34. (set #languages-prompt "Please select which language catalog(s) you want to install")
  35. (set #memory-prompt "Is your Amiga equipped with more than 2MB of memory?")
  36. (set #memory-help "AWeb-II runs on a 2MB Amiga, but needs a special setup on such a machine. If you click the 'only 2MB' button, the appropriate settings will be installed.\n\nYou can always change the settings after installation.")
  37. (set #fonts-prompt "Do you want to install the \"times.font\" and \"courier.font\" sizes 30 and 36?")
  38. (set #fonts-help 
  39.    (cat "In order to provide AWeb-II with a consistent set of fonts, four fonts are included "
  40.       "in this archive, times/30, times/36, courier/30 and courier/36.\n\n"
  41.       "Because the demo uses these fonts by default, page headers might look really awful "
  42.       " if you don't install these fonts. It is highly recommended that you install them."
  43.    )   
  44. )
  45. (set #fixfonts-prompt "The FixFonts utility will be run to make the newly added fonts available.")
  46. (set #fixfonts-help
  47.    (cat "The FixFonts utility is needed to make the newly added fonts available to the system.\n\n"
  48.       "If you intend to use the fonts from this archive, you are strongly encouraged to "
  49.       "run FixFonts now.\n\n"
  50.       "Note that running this program may take a while."
  51.    )
  52. )
  53.  
  54. (set #readme "Displaying the version notes readme...")
  55. (set #bye 
  56.    (cat "In case you need help configuring or using AWeb-II DEMO, pressing the HELP key "
  57.       "when AWeb is active will bring up the documentation.\n"
  58.       "I hope you will enjoy using this demo and will consider purchasing the full version."
  59.    )
  60. )
  61.  
  62. ; ---------------------------------------------------------------------------
  63.  
  64. (complete 0)
  65.  
  66. (if (not v39)
  67.    (abort #need39)
  68. )
  69.  
  70. (message #welcome)
  71.  
  72. (set @source-dir (pathonly @icon))
  73.  
  74. (set defdir
  75.    (askdir
  76.       (prompt #destdir-prompt)
  77.       (help #destdir-help)
  78.       (default @source-dir)
  79.    )
  80. )
  81. (set @default-dest defdir)
  82.  
  83. (set nocopy (= @source-dir @default-dest))
  84.  
  85. (message #classact)
  86.  
  87. (if (not nocopy)
  88.     (
  89.        (set @default-dest (tackon @default-dest "AWeb32DEMO"))
  90.     
  91.        (set update-aweb (exists @default-dest))
  92.     
  93.        (if (not update-aweb)
  94.            (makedir @default-dest 
  95.                (prompt #creating-dir @default-dest) 
  96.                (infos)
  97.            )
  98.        )
  99.       (complete 10)
  100.  
  101.       (copyfiles
  102.          (source "")
  103.          (dest @default-dest)
  104.          (choices "AWeb" "AWebCfg")
  105.          (prompt #installing "AWeb")
  106.          (infos)
  107.       )
  108.       (complete 20)
  109.       
  110.        (copyfiles
  111.          (source "")
  112.           (dest @default-dest)
  113.          (choices "aweblib")
  114.           (prompt #installing "AWeb")
  115.        )
  116.       (complete 30)
  117.  
  118.       (set cache-dir (tackon @default-dest "Cache"))
  119.       (if (not (exists cache-dir))
  120.          (
  121.             (makedir cache-dir
  122.                (prompt #creating-dir cache-dir)
  123.                (infos)
  124.             )
  125.          )
  126.       )
  127.       (complete 40)
  128.  
  129.        (copyfiles
  130.          (source "")
  131.           (dest @default-dest)
  132.          (choices "ReadMe" "Docs" "Icons" "Images")
  133.           (prompt #installing "AWeb")
  134.           (infos)
  135.        )
  136.       (complete 50)
  137.       
  138.       (set languages
  139.          (askoptions
  140.             (choices "English" "ÃeÓtina (Czech)" "Dansk" "Deutsch" "Español"
  141.                "Français" "Greek" "Íslenska" "Italiano" "Nederlands" "Norsk"
  142.                "Polski" "Português" "Russian" "Srpski" "Suomi" "Svenska" "Türkçe")
  143.             (prompt #languages-prompt)
  144.             (help @askoptions-help)
  145.             (default 1)
  146.          )
  147.       )
  148.  
  149.       ; If any language calalogs are selected, copy them.
  150.  
  151.       (if (bitand languages 65534)
  152.          (
  153.             (set catdir (tackon @default-dest "Catalogs"))
  154.             (if (not (exists catdir))
  155.                (makedir catdir
  156.                   (prompt #creating-dir catdir)
  157.                     (infos)
  158.                )
  159.             )
  160.             (set bit 2)    ; English implementation, so there is no catalog for it
  161.             (set langnr 1)
  162.             (while (< langnr 18)
  163.                (if (bitand languages bit)
  164.                   (
  165.                      (set lang
  166.                         ; English is never selected from this list
  167.                         (select langnr "English" "ÃeÓtina" "Dansk" "Deutsch" "Español"
  168.                            "Français" "Greek" "Íslenska" "Italiano" "Nederlands" "Norsk"
  169.                            "Polski" "Português" "Russian" "Srpski" "Suomi" "Svenska" "Türkçe"
  170.                         )
  171.                      )
  172.                      (copyfiles
  173.                         (source (tackon "Catalogs" lang))
  174.                         (choices "aweb.catalog" "awebcfg.catalog")
  175.                         (dest (tackon catdir lang))
  176.                      )
  177.                   )
  178.                )
  179.                (set bit (shiftleft bit 1))
  180.                (set langnr (+ langnr 1))
  181.             )
  182.          )
  183.       )
  184.     )
  185. )
  186.  
  187. (complete 60)
  188.  
  189. ; Only ask if fonts should be installed in expert mode
  190. (if
  191.    (< @user-level 2)
  192.    (set #fonts 1)
  193.    (set #fonts
  194.       (askbool
  195.          (prompt #fonts-prompt)
  196.          (help #fonts-help)
  197.          (choices "Yes" "No")
  198.          (default 1)
  199.       )
  200.    )
  201. )
  202. (if
  203.    (> #fonts 0)
  204.    (
  205.       (copyfiles
  206.          (source "Fonts")
  207.          (dest "Fonts:")
  208.          (choices "times" "courier")
  209.          (prompt #installing "fonts")
  210.       )
  211.       (run "SYS:System/FixFonts"
  212.          (confirm)
  213.          (prompt #fixfonts-prompt)
  214.          (help #fixfonts-help)
  215.       )
  216.    )
  217. )
  218.  
  219. (complete 80)
  220.  
  221. (set #memory
  222.    (askbool
  223.       (prompt #memory-prompt)
  224.       (help #memory-help)
  225.       (choices "More than 2MB" "Only 2MB")
  226.       (default 1)
  227.   )
  228. )
  229.  
  230. (if (= #memory 0)
  231.    (
  232.       (makedir
  233.          (tackon @default-dest "T")
  234.       )
  235.       (makedir "ENVARC:AWeb3DEMO")
  236.       (copyfiles
  237.          (source "2MBsettings")
  238.          (dest "ENVARC:AWeb3DEMO")
  239.          (all)
  240.       )
  241.       (copyfiles
  242.          (source "ENVARC:AWeb3DEMO")
  243.          (dest "ENV:AWeb3DEMO")
  244.          (all)
  245.       )
  246.    )
  247. )
  248.  
  249. (complete 100)
  250.  
  251. (run "run >NIL: SYS:Utilities/MultiView ReadMe" (prompt #readme))
  252.  
  253. (exit #bye)
  254.